package com.hxd.otc.utils;

import android.content.Context;
import android.graphics.Typeface;

import com.hxd.otc.base.BaseApplication;

/**
 * Created by lzy on 2018/11/15 0015.
 * description ${字体工具类}
 */
public class TypefaceUtil {

    public static Typeface getDINProBoldTypeface() {
        return getTypeface("DINPro-Bold.otf");
    }

    public static Typeface getTypeface(String assetsName) {
        return Typeface.createFromAsset(getContext().getAssets(), assetsName);
    }

    private static Context getContext() {
        return BaseApplication.getInstance();
    }
}
